import request from '@/utils/request'

// 查询提交考试申请列表
export function listApplication(query) {
  return request({
    url: '/exam/application/list',
    method: 'get',
    params: query
  })
}

// 查询提交考试申请详细
export function getApplication(id) {
  return request({
    url: '/exam/application/' + id,
    method: 'get'
  })
}

// 新增提交考试申请
export function addApplication(data) {
  return request({
    url: '/exam/application',
    method: 'post',
    data: data
  })
}

// 修改提交考试申请
export function updateApplication(data) {
  return request({
    url: '/exam/application',
    method: 'put',
    data: data
  })
}

// 删除提交考试申请
export function delApplication(id) {
  return request({
    url: '/exam/application/' + id,
    method: 'delete'
  })
}

// 通过考试申请id查询学生信息
export function getExamApplicationStudentInfos(applicationId) {
  return request({
    url: '/exam/application/getStudentInfo/' + applicationId,
    method: 'get'
  })
}

// 提交考试申请1
export function submitExamApplication1(examApplicationId) {
  return request({
    url: '/exam/application/sumbitExamOne/' + examApplicationId,
    method: 'get'
  })
}